import ajax from '../utils/request'

// 宫格数据
function getNavListFn() {
    return [
        { navid: 1, title: '皮肤科', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/pifu.png' },
        { navid: 2, title: '儿科', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/erke.png' },
        { navid: 3, title: '心理科', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/xinli.png' },
        { navid: 4, title: '妇科', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/fuke.png' },
        { navid: 5, title: '内分泌科', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/neifenmike.png' },
        { navid: 6, title: '一病多问', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/duowen.png' },
        { navid: 7, title: '问诊购药', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/yaoke.png' },
        { navid: 8, title: '健康商城', imgurl: 'https://pet-demo-itcrx.oss-cn-hangzhou.aliyuncs.com/grid/shop.png' }
    ]
}

function getBannerListFn () {
	return ajax({
		url: "/carousels/getList"
	})
}

function getAreaListFn () {
	return ajax({
		url: "/areaicon/getAreaList"
	})
}

// 获取推荐医生的api
function getDoctorListFn () {
	return ajax({
		url: "/doctors/getDoctorList"
	})
}

// 获取商品推荐api
function getProListFn () {
	return ajax({
		url: "/products/getProList"
	})
}

// 获取文章api
function getAllArticlesFn () {
	return ajax({
		url: "/articles/getAllArticles"
	})
}

export { getNavListFn, getBannerListFn, getAreaListFn, getDoctorListFn, getProListFn, getAllArticlesFn }